$(document).ready(function(){
    $("#addBtn").click(function(){
       var $form =  $(".addDetail > form");
       var url = $form.attr('action');
       $.ajax({
           "url":url,
           "data": $form.serialize(),//把整个表单的值序列化提交
           "dataType":"json",
            "success":function(dto){
               alert(dto.msg);
        }
       });
    });
});